package com.liaowei.comment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liaowei.model.domain.ArticleComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author LindaMan
* @description 针对表【wy_article_comment(文章-评论表)】的数据库操作Mapper
* @createDate 2023-05-09 15:26:25
* @Entity com.liaowei.comment.model.domain.ArticleComment
*/
public interface ArticleCommentMapper extends BaseMapper<ArticleComment> {

    // 查询用户是否对该文章评论过
    List<ArticleComment> selectIsCommented(@Param("articleId") Long articleId, @Param("userId") Long userId);
}




